package fei.zhou.springboot2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 描述该类- JPA
 *
 * @author zhoufei
 * @class: HelloController
 * @date 2021/1/13 15:51
 * @Verson 1.0 -2021/1/13 15:51
 * @see
 */
@Controller
public class HelloController {
    
    @RequestMapping("/success")
    public String success(Map<String, Object> map) {
        map.put("hello", "通过模板引擎跳转到success.html页面");
        return "success";
    }
    
    @RequestMapping("/hello")
    public void hello() {
        throw new RuntimeException("RuntimeException");
    }
    
}
